package com.huosu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huosu.domain.miner.ClassCompute;
import com.huosu.domain.miner.ComputeRule;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zhangjian
 * @since 2019-12-12
 */
public interface ComputeMapper extends BaseMapper<ClassCompute> {

	/**
	 * 优惠规则
	 *
	 * @return
	 */
	@Select("select amount,discount from class_compute_rule where type=1 and state=1 order by amount desc")
	List<ComputeRule> getClassComputeRule();

}
